package com.zang.blogz.model.output;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 臧臧 on 2022/6/22
 */
@Data
@Accessors(chain = true)
public class WebsiteConfigVO {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("微信支付码")
    @TableField("wechat_pay_code")
    private String wechatPayCode;

    @ApiModelProperty("gitee地址")
    @TableField("gitee")
    private String gitee;

    private String adminAvatar;

    @ApiModelProperty("github地址")
    @TableField("github")
    private String github;

    @ApiModelProperty("昵称")
    @TableField("name")
    private String name;

    @ApiModelProperty("欢迎语")
    @TableField("welcome_you")
    private String welcomeYou;

    @ApiModelProperty("二级欢迎语")
    @TableField("welcome_you_two")
    private String welcomeYouTwo;

    @ApiModelProperty("个性签名")
    @TableField("individuality_signature")
    private String individualitySignature;

    @ApiModelProperty("备案号")
    @TableField("record")
    private String record;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date updateTime;

    @ApiModelProperty(value = "文章总数")
    private Long articleCount;

    @ApiModelProperty(value = "类型总数")
    private Long typeCount;

    @ApiModelProperty(value = "标签总数")
    private Long tagCount;

    @TableField(value = "view_count")
    @ApiModelProperty(value = "博客总访客")
    private Long viewCount;
}